import { defineConfig , envField} from 'astro/config';
import mdx from '@astrojs/mdx';
import sitemap from '@astrojs/sitemap';

import tailwind from '@astrojs/tailwind';

import node from '@astrojs/node';

// https://astro.build/config
export default defineConfig({
  site: 'https://example.com',
  integrations: [mdx(), sitemap(), tailwind()],
  providers: [],
  adapter: node({
    mode: 'middleware',
  }),
  env: {
    schema: {
      DB_USER: envField.string({ context: "server", access: "public", default: 'root' }),
      DB_PASSWORD: envField.string({ context: "server", access: "public", default: '123456' }),
      DB_DATABASE: envField.string({ context: "server", access: "public", default: 'blog' }),
    }
  }
});